#!python
#
# Pyste file for members of the osg namespace defined in OSGBaseFunctions.h

declaration_code("""
namespace
{

bool osgInitWrapper(const unsigned int argc, list pythonArgv)
{
   std::vector<char*> argv(argc);

   for ( unsigned int i = 0; i < argc; ++i )
   {
      argv[i] = extract<char*>(pythonArgv.pop());
   }

   return osg::osgInit(argc, &argv[0]);
}

}
""")


osg_init = Function('osg::osgInit', 'OpenSG/OSGBaseFunctions.h')
osg_exit = Function('osg::osgExit', 'OpenSG/OSGBaseFunctions.h')

set_wrapper(osg_init, "osgInitWrapper")
